package pe.com.trestperu.common.util;

import java.io.Serializable;
import java.util.Locale;

import org.springframework.context.support.ReloadableResourceBundleMessageSource;

/**
 * 
 *
 * @author Telly Tataje
 *
 */
public class PropertiesReader extends ReloadableResourceBundleMessageSource implements Serializable{

	private static final long serialVersionUID = 7984552560062585009L;

	public String getMessage(String key){
		return super.getMessage(key, null, Locale.getDefault());
	}
	
	public String getMessage(String key, Locale locale){
		return super.getMessage(key, null, locale);
	}
	
	public String getMessage(String key, Object[] parameters){
		return super.getMessage(key, parameters, Locale.getDefault());
	}

	public String getMessage(String key, String parameters){
		return super.getMessage(key, new Object[]{ parameters }, Locale.getDefault());
	}
	
	public String getMessage(String key, Locale locale, Object[] parameters){
		return super.getMessage(key, parameters, locale);
	}
}